import time

from app.modules.apps.container_httpd import HttpdPhpApp

httpd = HttpdPhpApp(app_id='euaws:tom', app_name='tom',
                    zone_home_path='/usr/local/app/uc.euaws.area',
                    zone_alias='euaws',
                    port='21080',
                    nas_app_package_path='/usr/local/Beetle/projects/tom/tom_1.1.37_Claim_p3/20161116-101713/target')

httpd.uninstall_app()
httpd.install_app()

time.sleep(3)
print httpd.is_started()
